#ifndef AST_DECLARATIONS_DESIGNATION_H
#define AST_DECLARATIONS_DESIGNATION_H

#include "../ASTNode.h"
class DesignatorList;

/*
C99   6.7.8
designation:
		designator-list   =
*/
class Designation : public ASTNode
{
	Designation(void)
		: ASTNode(ASTNode::designation){};
public:
	explicit Designation(DesignatorList * pDList)
		: ASTNode(ASTNode::designation)
		, m_pDesignatorList(pDList){};

	virtual ~Designation(void);

	virtual void					codeGen();

protected:
	DesignatorList *				m_pDesignatorList;
};

#endif


